import request from '@/utils/request'
/**
 * 获取权限点列表
 */
export function permissionListAPI() {
  return request({
    url: '/sys/permission'
  })
}
/**
 * 删除权限点
 */
export function DelpermissionAPI(id) {
  return request({
    method: 'DELETE',
    url: `/sys/permission/${id}`
  })
}
/**
 * 查看回显权限点
 */
export function LookListAPI(id) {
  return request({
    url: `/sys/permission/${id}`
  })
}
/**
 * 添加权限点
 */
export function AddpermisionAPI(data) {
  return request({
    method: 'POST',
    url: '/sys/permission',
    data
  })
}
